﻿using System;
using System.Collections.Generic;

namespace DDDProjectSample.Domain.Repositories
{
    /// <summary>
    /// Contract for MessageRepository component
    /// </summary>
    public interface IMessageRepository : IRepository<Message>
    {
        /// <summary>
        /// Loads all the messages of a topic
        /// </summary>
        /// <param name="forumId">Id of the topic</param>
        /// <returns>Collection of topic's messages</returns>
        ICollection<Message> FindByTopicId(long topicId);
    }
}
